start rmiregistry
javac ServerName.java
java ServerName